﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HenuAlbum.ResponseModels
{
    public class ArrayResponse : ResponseBase
    {
        public new ICollection Data { get; set; }
        public int Count { get => Data.Count; }
        public ArrayResponse(ICollection data) : base(ErrorCode.Ok, "操作成功!")
        {
            Data = data;
        }
        public ArrayResponse(string message, ICollection data) : base(ErrorCode.Ok, message)
        {
            Data = data;
        }
    }
}
